<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@include file="/common/jsp/taglibs-nojs-nocss.jsp"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
//	String id = request.getParameter("id");

%>
<div>
	<div class="pop_up_title images_13">
		填写审批意见
	</div>
	<div id="pop_up_content">
		<form id="editForm" action="<%=basePath %>checkIdea/checkIdeaAction!saveCheckIdea.action">
			<input type="hidden" value="<s:property value='checkIdeaForm.checkFolwId'/>" name="checkIdeaForm.checkFolwId"/>
			<input type="hidden" value="<s:property value='checkIdeaForm.check'/>" name="checkIdeaForm.check"/>
			<input type="hidden" value="<s:property value='checkIdeaForm.classFlag'/>" name="checkIdeaForm.classFlag" id="classFlag"/>
			<table border="0" cellpadding="0" cellspacing="0" width="350px" align="center">
				<tr>
					<td>
						<div class="form_input_value" style="margin-left: 8px;">
							<span class="red">*</span>审批意见
						</div>
					</td>
				</tr>
				<tr>
					<td>
						<div class="form_input_value">
							<textarea rows="10" style="width:320px;height:100px;overflow-y:scroll;overflow-x:hidden;margin-left: 8px;" 
							id="checkMemo" name="checkIdeaForm.checkMemo" class="required max_length:255">
							</textarea>
						</div>
					</td>
				</tr>
				<tr>
					<td>
						<input id="editSubmit" type="button" value="确定" class="btn" onmouseout="this.className='btn'" onmousedown="this.className='btn1'" onmouseover="this.className='btn2'">
						<input type="button" value="取消" class="btn" onclick="hideDialog();" onmouseout="this.className='btn'" onmousedown="this.className='btn1'" onmouseover="this.className='btn2'">
	               </td>
	            </tr>
			</table>
		</form>
	</div>
</div>
<script>
	/* 表单提交 */
	i.formSubmit("editSubmit",	//绑定的按钮id
					  "editForm" ,   //提交的表单id
					  function(result){
						  	var jsonMsgObj=new JsonMsgObj(result);
							var  msg=jsonMsgObj.getMessage();
						    var codeId=jsonMsgObj.getCodeid();
							var isOk=jsonMsgObj.getIsok();
							if( isOk ){
							    aerouiAlert(msg);
								hideDialog();// 隐藏窗口
								var classFlag = document.getElementById("classFlag").value;
								if(classFlag.value=='becomeRegular'){
									loadContentLink('<%=basePath %>becomeRegular/becomeRegularAction!becomeRegularList.action');
								}else if(classFlag=='stationChange'){
									loadContentLink('<%=basePath %>stationChange/stationChangeAction!getListStationChange.action');
								}else if(classFlag=='quitEntry'){
									loadContentLink('<%=basePath %>quitEntry/quitEntryAction!quitEntryList.action');
								}else if(classFlag=='leave'){
									loadContentLink('<%=basePath %>person/getLeaveList.action');
								}else if(classFlag=='trip'){
									loadContentLink('<%=basePath %>person/getTripByUid.action');
								}else if(classFlag=='loan'){
									loadContentLink('<%=basePath %>loan/loanAction!getListLoan.action');
								}else if(classFlag=='weekCash'){
									loadContentLink('<%=basePath %>weekCash/weekCashAction!getListWeekCash.action');
								}else if(classFlag=='note'){
									loadContentLink('<%=basePath %>note/noteAction!getListNote.action');
								}else if(classFlag=='recruitPlan'){
									loadContentLink('<%=basePath %>recruitPlan/recruitPlanAction!recruitPlanList.action');
								}else if(classFlag=='purchaseEntry'){
									loadContentLink('<%=basePath %>purchaseEntry/purchaseEntryAction!getPurchaseEntryList.action');
								}
								
							}else{		// 如果编辑失败了
							  JsManageInfoHandleException( result , function(msg , codeId , isOk){
							  		hideDialog();// 隐藏窗口
							   });
						   }
						});

</script>
	
